package com.bootdo.system.dao;

import com.bootdo.system.domain.ReportDo;
import com.bootdo.system.domain.UserFileDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2020-09-22 14:53:04
 */
@Mapper
public interface UserFileDao {

	UserFileDO get(Integer id);
	
	List<UserFileDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserFileDO userFileDO);
	
	int update(UserFileDO userFileDO);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	UserFileDO getUserFileDetail(Map<String,Object> map);

    UserFileDO getDetail(int belong);

	List<ReportDo> reportList(Map<String, Object> map);

	int reportCount(Map<String, Object> map);

    List<UserFileDO> getMyReceiveFileListFor(Map<String, Object> map);

	int countFor(Map<String, Object> map);

	List<ReportDo> tenReportList(Map<String, Object> map);

	int tenReportCount(Map<String, Object> map);

	ReportDo tenReportByTime(@Param("addtime")String addtime);

	List<ReportDo> typeList(Map<String, Object> map);

	int typeCount(Map<String, Object> map);

    List<UserFileDO> listFileFor(Map<String,Object> map);

	List<UserFileDO> getFiletypeCount(@Param("auditid") Long auditid);
}
